inherit "/objs/sys/daemon";

string Verb;
array Rules;

void create()
{
	daemon::create();
}

void SetVerb(string verb)
{
	Verb = verb;
	if (Rules)
	{
		foreach(string rule in Rules)
			parser_add_rule(Verb, rule);
	}
}

void SetRules(array rules)
{
	Rules = rules;
	if (Verb)
	{
		foreach(string rule in Rules)
			parser_add_rule(Verb, rule);
	}
}